<?php
include_once(JL_ROOT.'/jl_controller.cls.php');
include_once(JL_ROOT.'/jl_tools.cls.php');

class AsideDo extends JL_controller {
	
	public function __init(){
		$this->page = JL_factory::get_JL_page();
		
		
	}
	
	public function do__(){
		
		$this->page->set_error('error','一个错误测试');
		$this->page->display('/user/error.tpl.php');
		
		
		
		
		
		
	}
	
	public function do__my_list(){
		if(!JL_tools::get_session('login_user')){
			header('location:/');exit;
		}
		$today_old5 = strtotime(date('Y-m-d 00:00:00',strtotime('-5 day')));
		$table = JL_factory::get_JL_mysql_table('zb_aside');
		$table->get_rows('*');//,' WHERE aside_add_time > '.$today_old5
		$list = $table->fetch($table->exec());
		$this->page->set_item('list',$list);
		$this->page->display('/aside/list.tpl.php');exit;
		
		
	}
	
	public function do_public_list(){
		$table = JL_factory::get_JL_mysql_table('zb_aside');
		$table->get_rows('*',' WHERE ');
		
		
	}
	
	
	
	
}















?>